

/**
 * Dummy Object which can release or tie a Worker.
 * 
 * @author mac_fly
 * @param
 * @return 
 */
public class DummyObject {

	public DummyObject()
	{
	}
	
	public synchronized void release()		//Contains notifyAll and is able to release all Workers
	{										
		this.notifyAll();										
	}
	public synchronized void sleep()		//Contains wait and is able to tie Workers at itself
	{
		try 
		{
			this.wait();
		} 
		catch (InterruptedException e) 
		{
			e.printStackTrace();
		}
	}
	
	
	
	
	
}
